# demo03_multi_extend.py  多继承
class A:
    def func01(self):
        print("in func01 A")
    def func04(self):
        print("in func04 A")
class B:
    def func02(self):
        print("in func02 B")
    def func04(self):
        print("in func04 B")
class C(B, A):  # 就近原则
    def func03(self):
        print("in func03 C")
c = C()
c.func04()
c.func01()  # A
c.func02()  # B
c.func03()  # C